package y23.Jun;
//打印一个整数的每一位
import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int num = sc.nextInt();
            numOne(num);
        }
    }
    public static void numOne(int num){
        if(num < 10){
            System.out.println(num);
            return;
        }
        numOne(num / 10);
        System.out.println(num % 10);
    }
}
